package com.boho.ecp.constant;

/**
 * Copyright (c) 2012-2013 JLLT Corp. 2012-2013,All Rights Reserved.
 * This software is published under the 金麟龙腾商贸有限公司.
 * License version 1.0, a copy of which has been included with this
 * distribution in the LICENSE.txt file.
 *
 * @File name:  Base.java   常量基类
 * @Create on:  2012-06-25 21:11:292
 * @Author   :  陈伟
 *
 * @ChangeList
 * ---------------------------------------------------
 * Date         Editor              ChangeReasons
 *
 */
public class Base {
	
	public static final int VAILD = 1; // 有效
	public static final int INVALID = 0; // 无效
	
	/**
	 * 付款方式
	 * @param id
	 * @return
	 */
	public static String getPayMethod(int id){
		String str = "";
		switch(id){
			case 1 : 
				str = "网银支付";
				break;
			case 2 : 
				str = "在线第三方支付";
				break;
			case 3 : 
				str = "货到付款";
				break;
			case 4 : 
				str = "银行汇款";
				break;
		}
		return str;
	}
	
	/**
	 * 送货方式
	 * @param id
	 * @return
	 */
	public static String getDeliverMethod(int id){
		String str = "";
		switch(id){
			case 1 : 
				str = "快递";
				break;
			case 2 :
				str = "EMS";
				break;
			case 3 :
				str = "平邮";
				break;
			case 4 :
				str = "物流";
				break;
			case 5 :
				str = "上门自提";
				break;
		}
		return str;
	}
	
	/**
	 * 送货时间段
	 * @param id
	 * @return
	 */
	public static String getDeliverTime(int id){
		String str = "";
		switch(id){
			case 1 : 
				str = "时间不限";
				break;
			case 2 :
				str = "周一到周五";
				break;
			case 3 :
				str = "周六日及公众节假日";
				break;
		}
		return str;
	}
	
	/**
	 * 积分类型
	 * @param id
	 * @return
	 */
	public static String getPointItem(int id){
		String str = "";
		switch(id){
			case 10 : 
				str = "交易获得";
				break;
			case 11 :
				str = "兑换";
				break;
		}
		return str;
	}
	
	/**
	 * 审核状态
	 * @param id
	 * @return
	 */
	public static String getVerifyStatus(int id){
		String str = "";
		switch(id){
			case 0 : 
				str = "未审核";
				break;
			case 1 :
				str = "已通过";
				break;
			case 2 :
				str = "未通过";
				break;
		}
		return str;
	}
}
